import { ApiProperty } from '@nestjs/swagger';
import { IsInt, IsNotEmpty } from 'class-validator';
/**
 * 分页请求头字段
 */
export class RequestPaginationDto {
  @IsInt()
  @IsNotEmpty()
  @ApiProperty({
    description: '分页大小',
    required: true,
    default: 10,
    example: 10
  })
  pageSize: number;

  @IsInt()
  @IsNotEmpty()
  @ApiProperty({
    description: '当前页',
    required: true,
    default: 1,
    example: 1
  })
  current: number;
}
